/*
 * Created by Jaren at 2021/10/29 9:18
 */
import 'package:get/get.dart';
import 'package:inmotion_protocol_example/app/routes.dart';
import 'package:inmotion_protocol_example/module/operation/operation_controller.dart';
import 'package:inmotion_protocol_example/module/operation/operation_view.dart';
import 'package:inmotion_protocol_example/module/search/search_controller.dart';
import 'package:inmotion_protocol_example/module/search/search_view.dart';

class Pages {
    static final routes = [
        GetPage(
            name: '/',
            page: () => SearchPage(),
            binding: BindingsBuilder(() {
                Get.lazyPut(() => LxSearchController());
            }),
            preventDuplicates: true,
            children: [
                GetPage(
                    name: Routes.OPERATION,
                    page: () => OperationPage(),
                    binding: BindingsBuilder(() {
                        Get.lazyPut(() => OperationController());
                    }),
                ),
            ]
        ),

    ];
}